<!doctype HTML>
<html>
<head>
<meta charset="UTF-8"/>
<title>12计算机毕业设计</title>
<link rel="stylesheet" href="/stylesheets/style.css">
<style>a{TEXT-DECORATION:none}</style>
</head>
<script type="text/javascript">
function upLoad() {
  var id = document.getElementById("upLoad2");
  if(id.style.display === 'none') {
    id.style.display = 'block';
  }else {
    id.style.display = 'none';
  }
}
function asd() {
  var cf = confirm('-----确认退出登录-----');
  if(cf === true) {
    window.location.href = 'http://localhost:3000/logout';
  }
}
</script>
<!--加入系统标题-->
<style> 
  #btitle {position:fixed; _position:absolute; _top: expression(documentElement.scrollTop +documentElement.clientHeight-this.offsetHeight); overflow:visible; left:5%;  _position:absolute; _top:1% overflow:visible;}
</style>
<div id="btitle">
<img src="/images/title.png">
</div>
<br>
<marquee scrollAmount=2 width=300><font color="#ff3300" size="4" >欢迎来到MFOA(Make Friends Of Article --以文会友)交友平台！</font>--12计算机毕业设计</marquee>
<br>
<body style="background-image:url(/images/3.jpg);">
  <br>
  <span style="font-size:25px;"><a title="主页" href="/"><img src="/images/index.png"></a></span>
   <% if (user) { %>
  <span style="float:right; font-size:25px;"><a href="javascript:void(0)" onclick="asd()">退出登录</a></span>
  <span style="float:right; font-size:25px;"><a href="/change">修改密码&nbsp;</a></span>
  <% } else { %>
  <span style="float:right; font-size:25px;"><a href="/reg">注册账号</a></span>
  <span style="float:right; font-size:25px;"><a href="/login">会员登录&nbsp;</a></span>
  <% } %>
<header>
<h1><%= title %></h1>
</header>

<nav>
<span><a href="/barrage">弹幕</a></span>
<span><a href="/archive">文档</a></span>
<span><a href="/tags">标签</a></span>
<% if (user) { %>
  <span><a href="/post">文章</a></span>
  <span><a href="javascript:void(0)" onclick="upLoad()">头像</a></span>
  <div id = "upLoad2" style="display:none;background:#ec0009;">
    <a href="/avaupload">本地上传</a>
    <a href="/ava2upload">外链上传</a>
  </div>
<% } %>
<span><a title="无匹配" href="/share">分享</a></span>
<div style="margin-top: 50px"><a href="#">TOP</a></div>
</nav>
<header>
<article>

<% if (success) { %>
  <div><%= success %></div>
<% } 
   if (error) { 
%>
  <div><%= error %> </div>
<% } %>